* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'FreightDisp Pro';
    src: local('FreightDisp Pro Medium Regular '), local('FreightDisp-Pro-Medium-Regular-'),
        url('FreightDispProMedium-Regular.woff2') format('woff2'),
        url('FreightDispProMedium-Regular.woff') format('woff'),
        url('FreightDispProMedium-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
}

header {
    background-color: #01582e;
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 6.5%;
    height: auto;
}

nav {
    background-color: #01582e;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 20px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: white;
    color: #01582e;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

main {
    padding: 5rem;
}

#hero {
    text-align: center;
    margin-bottom: 5rem;
}

#hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#portfolio h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.portfolio-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.portfolio-item {
    flex: 1;
    text-align: center;
}

.image-slider {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.image-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.image-slider img.active {
    opacity: 1;
}

.slider-dots {
    text-align: center;
    margin-top: 0.25rem;
}

.dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background-color: #01582e;
}

.portfolio-item h3 {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.cta {
    display: inline-block;
    margin-top: 1rem;
    color: #01582e;
    text-decoration: none;
}

footer {
    background-color: #f5f5f5;
    padding: 5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 150px;
    margin-left: 3rem;
}

.footer-links h3 {
    margin-bottom: 0.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: #333;
    text-decoration: none;
}

.footer-subscribe form {
    display: flex;
}

/* General responsive styles */
@media screen and (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: 20px;
  }

  /* Adjust navigation for mobile */
  nav {
    flex-direction: column;
    align-items: center;
  }

  nav a {
    margin: 5px 0;
  }

  /* Make images responsive */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Adjust portfolio grid for mobile */
  .portfolio-container {
    grid-template-columns: 1fr;
  }

  .portfolio-item {
    margin-bottom: 20px;
  }

  /* Adjust project sections for mobile */
  .project-section {
    flex-direction: column;
  }

  .project-image {
    width: 100%;
    margin-bottom: 20px;
  }

  .project-content {
    width: 100%;
  }

  .project-gallery {
    flex-direction: column;
  }

  .project-gallery img {
    width: 100%;
    margin-bottom: 10px;
  }

  /* Adjust software grid for mobile */
  .software-grid {
    grid-template-columns: 1fr;
  }

  /* Adjust footer for mobile */
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-links {
    margin-bottom: 20px;
  }
}

/* Improve image sliders for mobile */
@media screen and (max-width: 768px) {
  .image-slider {
    height: 200px;
  }

  .image-slider img {
    object-fit: cover;
    height: 100%;
  }

  .slider-dots {
    bottom: 10px;
  }
}

.footer-subscribe input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-right: none;
}

.footer-subscribe button {
    background-color: #01582e;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding-top: 1rem;
    border-top: 1px solid #ccc;
}

.social-icons a {
    margin-left: 1rem;
    color: #333;
    text-decoration: none;
}
